package app.sevenc.lib_framework.permission

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity

/**
 * 权限代理接口
 *
 * @author Seven-C
 * @date 2021/8/5
 */
interface IPermission {

    fun activityPermissions(
        activity: FragmentActivity,
        permissions: List<String>,
        action: (Boolean) -> Unit
    )

    fun fragmentPermissions(
        fragment: Fragment,
        permissions: List<String>,
        action: (Boolean) -> Unit
    )
}